package com.example.service.impl;

import com.example.entity.Remark;
import com.example.mapper.RemarkMapper;
import com.example.service.IRemarkService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.utils.RemarkDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author dengc
 * @since 2023-05-16
 */
@Service
public class RemarkServiceImpl extends ServiceImpl<RemarkMapper, Remark> implements IRemarkService {

    @Resource
    private RemarkMapper remarkMapper;

    @Override
    public List<RemarkDTO> findRemark(Integer articleid) {
        return remarkMapper.findRemark(articleid);
    }
}
